package com.spark.shiro.bean;

import java.util.List;

/**
 * Created by tyd on 2017-10-30.
 *
 * @author tyd
 *         <p>
 *         分页数据返回实体类封装
 */
public class ResponseEntity<T> {

    private Status status;

    private List<T> data;

    private int count;

    public ResponseEntity(Status status, List<T> data, int count) {
        this.status = status;
        this.data = data;
        this.count = count;
    }

    public ResponseEntity() {
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
